#include "ANN_Header.h"

namespace ann
{
	InputNode::InputNode(void): m_inData(0.0)
	{
	}
	
	
	InputNode::~InputNode(void)
	{
	}

	void InputNode::Update(void)
	{
		std::list<Tube*>::iterator outBeginItr = this->GetOutTubeBeginItr();
		std::list<Tube*>::iterator outEndItr = this->GetOutTubeEndItr();

		for ( ; outBeginItr != outEndItr; ++outBeginItr)
		{
            (*outBeginItr)->SetValue(m_inData);
		}

        this->SetValue(m_inData);

		return;
	}
}
